package com.itheima.student.dao;

import com.itheima.domain.Student;

import java.io.IOException;
import java.util.ArrayList;

public interface IStudentDao {

    //增
    void addStudent(Student student);

    //删
    void deleteAllStudent();

    void deleteSidStudent(String sid);

    //改
    void updateStudent(String sid, Student student);

    //查
    ArrayList<Student> findAllStudent();

    Student findSidStudent(String sid);

    ArrayList<Student> findNameStudent(String name);

    ArrayList<Student> findAgeStudent(int age);

    ArrayList<Student> findPhoneStudent(String phone);

    ArrayList<Student> findGroupStudent(int group);

    //根据学号获取索引
    int getIndex(String sid);

    //写入
    void writeStudent() throws IOException;

    //读取
    void readStudent() throws Exception;






}
